//
//  UIView+loadWithNib.m
//  KiklinkApp
//
//  Created by LJC on 14-8-25.
//  Copyright (c) 2014年 Kiklink. All rights reserved.
//

#import "UIView+loadWithNib.h"

@implementation UIView (loadWithNib)

+ (id)loadWithNib:(NSString *)nibName AndPostion:(CGPoint)position
{
    NSArray *views = [[NSBundle mainBundle] loadNibNamed:nibName owner:nil options:nil];
    UIView *view = [views objectAtIndex:0];
    CGRect r = view.frame;
    r.origin = position;
    view.frame = r;
    return view;
}

@end
